/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
Ext.define('KMA.view.grids.AlumnosPlatoArmado',{
   extend: 'Ext.grid.Panel',
   alias: 'widget.gridalumnos',
   itemid: 'gridalumnos',


   
   
    
   initComponent: function(){
       var contador = this.count;
       this.store = Ext.create('KMA.store.grids.AlumnosPlatoArmado',{});

       this.dockedItems = [
            {
                xtype: 'toolbar',
                dock: 'bottom',
                itemId: 'gridalumnos-count',
                items:[
                    {text: "Total de alumnos: "+contador}
                ]
            }
       ];
       
       this.columns = [
            {text: '#', dataIndex: 'id', sortable: true, flex: 1},
            {text: 'Grado', dataIndex: 'grado', sortable: true, flex: 1},
            {text: 'Alumno', dataIndex: 'alumno', sortable: true, flex: 1}
            
            
       ];
       
       this.height = 468;
      
       
       
       this.callParent(arguments);
   }
});